package com.kgcx.system.domain;

import com.kgcx.dbutils.domain.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.persistence.Table;

@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "t_sys_menu")
@ApiModel(value = "菜单")
public class Menu extends BaseDomain {

    /**
     * 菜单code
     */
    @ApiModelProperty(value = "菜单code", required = true, example = "3")
    private String code;

    /**
     * 名字
     */
    @ApiModelProperty(value = "名字", required = true, example = "系统")
    private String name;

    /**
     * 图标
     */
    @ApiModelProperty(value = "图标", required = true, example = "649c38917ae84d5a9ab0ec97a4649328")
    private String icon;

    /**
     * 地址
     */
    @ApiModelProperty(value = "地址", required = true, example = "/system/menu/getMenuList")
    private String url;

    /**
     * 层级 // 1主菜单 2 副菜单 3 查询 4 新增 5修改 6 删除
     */
    @ApiModelProperty(value = "1主菜单 2 副菜单 3 查询 4 新增 5修改 6 删除", required = true, example = "1")
    private Integer levels;
    
    /**
     * 关联ID
     */
    @ApiModelProperty(value = "关联ID", required = true, example = "1")
    private Long pid;
    
    /**
     * 排序字段
     */
    @ApiModelProperty(value = "排序字段", required = true, example = "1")
    private Integer sortField;
    
}